//注册全局组件

import SvgIcon from './SvgIcon/index.vue';
import type { App, Component } from 'vue';

//引入element-plus提供全部图标组件
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const components: { [name: string]: Component } = { SvgIcon };
console.log(components,'component')
export default {
    install(app: App) {
        Object.keys(components).forEach((key: string) => {
            console.log(key, components[key])
            app.component(key, components[key]);
        })
        for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
            app.component(key, component)
          }
        
    },
    
}